


export default function (app){
    const server = require('http').createServer(app.callback());
    const io = require('socket.io')(server);

    //监听connect事件
    io.on('connection', socket => {
            
        
    })
    return server
}